package com.demo.apparel.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "菜单路由的实体类")
public class Menu {
    @Schema(description = "菜单id")
    private Integer id;

    @Schema(description = "父菜单ID")
    private Integer parentId;

    @Schema(description = "路由路径")
    private String path;

    @Schema(description = "路由路径")
    private String name;

    @Schema(description = "组件路径")
    private String component;

    @Schema(description = "重定向路由")
    private String redirect;

    private MenuMeta meta;

    private List<Menu> children;
}
